<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>4商品详情</title>
		<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	</head>
	<style type="text/css">
		img {
			width: 20rem;
			height: 20rem;
		}
	</style>
	<body ng-app="myapp" ng-controller="productDescController" ng-init="loadProductById()" >
		<!--导航条-->
		<div>
			<ng-include src="'nav.html'"></ng-include>
		</div>
		<!--导航条-->
		<div class="container">
			<div class="row">
				<div class="col-md-8 col-md-offset-2">
					<ol class="breadcrumb">
					    <li><a href="1index.html">首页</a></li>
					    <li><a href="#">{{categoryNames[goods.id]}}</a></li>
					    
					</ol>
					
					<div class="row">
						<div class="col-md-6">
							<img src="{{goods.pimage}}" alt="" class="img-rounded">
						</div>
						<div class="col-md-6">
							<p>{{goods.pname}}</p>
							<p>{{goods.id}}</p>
							<p>建议价：￥{{goods.marketPrice}}/台 参考价：￥{{goods.shopPrice}}/台</p>
							<table class="table table-bordered">
								<td>
									<div class="form-group">
										<div class="col-md-offset-1">
											<p>白色</p>
										</div>
									</div>
									<div class="form-group">
										<label for="exampleInputNumber" class="col-md-4 control-label">购买数量</label>
										<div class="col-md-7">
											<input type="number" class="form-control" id="exampleInputNumber" value="1" ng-model="qty">
										</div>
									</div>
									<div class="form-group">
										<div class="col-sm-offset-3 col-sm-9">
											<button type="button" class="btn btn-default " ng-click="addGoods(goods.id)">加入购物车</button>
											<span>收藏</span>
										</div>
									</div>
								</td>
							</table>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-8 col-md-offset-2">
						<h3>商品介绍</h3>
						<p>
							{{goods.pdesc}}
						</p>
					</div>
				</div>
				<div class="row">
					<div class="col-md-6 col-md-offset-3">
						<p>商品参数</p>
						<table class="table table-bordered">
							<tr>
								<th>基本参数</th>
								<th></th>
							</tr>
							<tr>
								<td class="active">级别</td>
								<td class="success">标准</td>
							</tr>
							<tr>
								<td class="active">商品名称</td>
								<td class="success">华为meta9</td>
							</tr>
							<tr>
								<td class="active">生厂商</td>
								<td class="success">华为</td>
							</tr>
						</table>
						<p>商品评价</p>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>
<script src="js/angularjs/angular.min.1.5.8.js"></script>
<script src="js/base/base.js"></script>
<script src="js/service/categoryService.js"></script>
<script src="js/service/loginService.js"></script>
<script src="js/service/goodsService.js"></script>
<script src="js/service/carService.js"></script>
<script src="js/controller/navController.js"></script>
<script src="js/controller/productDescController.js"></script>
